Draw the background of rows insensitive when the treeview is insensitive.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 25 May 2005 17:19:56 +0000 (17:19 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 25 May 2005 17:19:56 +0000 (17:19 +0000)
2005-05-25  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
background of rows insensitive when the treeview is insensitive.
(pointed out by Billy Biggs)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktreeview.c

index 3aebac0380b8d47355320882b99f50c2d4380661..e0f8d187167c1b407e7fcb3922833accd2270fc1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the 
+       background of rows insensitive when the treeview is insensitive.
+       (pointed out by Billy Biggs)
+
        * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
        and DND, and clipboard persistency.
 
index 3aebac0380b8d47355320882b99f50c2d4380661..e0f8d187167c1b407e7fcb3922833accd2270fc1 100644 (file)
@@ -1,5 +1,9 @@
 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the 
+       background of rows insensitive when the treeview is insensitive.
+       (pointed out by Billy Biggs)
+
        * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
        and DND, and clipboard persistency.
 
index 3aebac0380b8d47355320882b99f50c2d4380661..e0f8d187167c1b407e7fcb3922833accd2270fc1 100644 (file)
@@ -1,5 +1,9 @@
 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the 
+       background of rows insensitive when the treeview is insensitive.
+       (pointed out by Billy Biggs)
+
        * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
        and DND, and clipboard persistency.
 
index 4af1996e4c5c41c2706d3c810f5cda1065f9ab43..1cc8df2cef06d3e9daef667f8202465a8ab00f8f 100644 (file)
@@ -3661,7 +3661,9 @@ gtk_tree_view_bin_expose (GtkWidget      *widget,
 
           g_assert (detail);
 
-         if (flags & GTK_CELL_RENDERER_SELECTED)
+         if (widget->state == GTK_STATE_INSENSITIVE)
+           state = GTK_STATE_INSENSITIVE;          
+         else if (flags & GTK_CELL_RENDERER_SELECTED)
            state = GTK_STATE_SELECTED;
          else
            state = GTK_STATE_NORMAL;